<html>
<head>
    <meta charset="utf-8">
    <title>收益分析</title>
    <#assign base=request.contextPath  />
    <#setting  number_format="0.##"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${base}/frame/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${base}/sweep/css/app.css" media="all">
    <link rel="stylesheet" href="${base}/sweep/css/mui.min.css" media="all">
    <link rel="stylesheet" type="text/css" href="${base}/sweep/css/style.css"/>
    <script src="${base}/backstage/js/jquery-1.8.3.min.js"></script>
    <script src="${base}/sweep/js/mui.min.js"></script>
    <script src="${base}/backstage/layui/layui.js"></script>
    <script type="text/javascript" src="${base}/frame/echarts/echarts.min.js"></script>
</head>
<body>
<br>
<div id="main" style="width: 100%;height:663px;float: left"></div>
<div class="mui-content" style="position: fixed;bottom: 0;width: 100%;background: none" >
    <div class="mui-content-padded">
        <button type="button" class="mui-btn mui-btn-warning " style="width: 100%;height: 50px;font-size: 22px" id="fan">返 回</button>
    </div>
</div>
</body>
<script>
    $(function () {
        var option = {
            title: {
                text: '${time} 收益分析',
                subtext: '',
                left: 'center'
            },
            tooltip: {
                trigger: 'item',
                formatter: '{a} <br/>{b} : {c} ({d}%)'
            },
            legend: {
                y:60,
                data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
            },
            series: [
                {
                    name: '收益分析',
                    type: 'pie',
                    radius: '55%',
                    center: ['50%', '40%'],<!--可以调整上下左右移动-->
                    data: [
                        {value: 335, name: '1月'},
                        {value: 310, name: '2月'},
                        {value: 234, name: '3月'},
                        {value: 135, name: '4月'},
                        {value: 230, name: '5月'},
                        {value: 106, name: '6月'},
                        {value: 330, name: '7月'},
                        {value: 124, name: '8月'},
                        {value: 520, name: '9月'},
                        {value: 236, name: '10月'},
                        {value: 250, name: '11月'},
                        {value: 560, name: '12月'}
                    ],
                    emphasis: {
                        itemStyle: {
                            shadowBlur: 10,
                            shadowOffsetX: 0,
                            shadowColor: 'rgba(0, 0, 0, 0.5)'
                        }
                    }
                }
            ]
        };

        // 基于准备好的dom，初始化echarts实例
        var myChart4 = echarts.init(document.getElementById('main'));
        // 使用刚指定的配置项和数据显示图表。
        myChart4.setOption(option);
    })
    $("#fan").one("click",function(){
        window.location.href="${base}/wx/user/personal.html";
    })
</script>
</body>

</html>


